package com.lotto.manager.admin.service.impl;

import java.util.Date;
import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.AbstractJUnit4SpringContextTests;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import com.lotto.manager.admin.dao.KitheMapper;
import com.lotto.manager.admin.entity.db.Kithe;


@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath*:**/spring-*.xml")
public class KitenTestServiceImpl extends AbstractJUnit4SpringContextTests {
	
	@Autowired
	KitheMapper kitheMapper;
	
	@Test
	public void testKitheMapper() {
		Kithe kiten = new Kithe();
		kiten.setLastTime(new Date(1));
		kiten.setKitheStatus("2");
		try {
			List<Kithe> list = kitheMapper.selectList(kiten);
			System.out.println(list.size());
		} catch (Exception e) {
			e.printStackTrace();
		}
		
	}
}
